home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / svgabg31.zip / TWK16.INC < prev    next >
Text File  |  1991-09-28  |  1KB  |  40 lines

  1. (************************************************)
  2. (*                         *)
  3. (*      SuperVGA 16 BGI driver defines    *)
  4. (*        Copyright (c) 1991        *)
  5. (*        Jordan Hargraphix Software        *)
  6. (*                        *)
  7. (************************************************)
  8.  
  9. type DacPalette16 = array[0..15] of array[0..2] of Byte;
  10.  
  11. (* These are the currently supported modes *)
  12. const
  13.  TWK704x528x16        = 0    (* 704x528x16 Tweaked VGA *)
  14.  TWK720x540x16        = 1    (* 720x540x16 Tweaked VGA *)
  15.  TWK736x552x16        = 2    (* 736x552x16 Tweaked VGA *)
  16.  TWK752x564x16        = 3    (* 752x564x16 Tweaked VGA *)
  17.  TWK784x588x16        = 4    (* 784x588x16 Tweaked VGA *)
  18.  TWK800x600x16        = 5    (* 800x600x16 Tweaked VGA *)
  19.  
  20.   XNOR_PUT        = 5;
  21.   NOR_PUT        = 6;
  22.   NAND_PUT        = 7;
  23.   TRANS_COPY_PUT    = 8;    (* Doesn't work on 16-color systems *)
  24.  
  25. (* Setvgapalette sets the entire 16 color palette *)
  26. (* PalBuf contains RGB values for all 16 colors   *)
  27. (* R,G,B values range from 0 to 63               *)
  28. procedure SetVGAPalette16(PalBuf : DacPalette16);
  29. var
  30.   Reg : Registers;
  31.  
  32. begin
  33.   reg.ax := $1012;
  34.   reg.bx := 0;
  35.   reg.cx := 16;
  36.   reg.es := Seg(PalBuf);
  37.   reg.dx := Ofs(PalBuf);
  38.   intr($10,reg);
  39. end;
  40.